package com.taotao.mapper;

import com.taotao.pojo.ItemCategory;

import java.util.List;

/**
 * @author hong.zheng
 * @Description商品类目Mapper
 * @date 2018-08-23-9:28
 **/
public interface ItemCategoryMapper {

    void addItemCategory(ItemCategory itemCategory);

    List<ItemCategory> getItemCategoryAll();

    /**
     * 根据父类目Id获取商品列表
     * @param parentId
     * @return
     */
    List<ItemCategory> getItemCategoryListByParentId(Long parentId);

    ItemCategory getItemCategoryListById(Long id);
}
